﻿@using PersonBlog.Model;

@{
    List<WeatherCityEntity> cityList = ViewBag.CityList == null ? null : ViewBag.CityList;
}


<div class="head">
    <span class="title">选择城市</span>
    <span class="close" onclick="closeFun()">关闭</span>
</div>
<div class="cont">
    <div class="c1">
        <label class="bt">省/直辖市：</label>
        <ul class="list" id="province"><li>贵州省</li></ul>
    </div>
    <hr />
    <ul class="list" style="width: 100%;margin-left: 20px" id="city">
        @if (cityList!=null && cityList.Count > 0)
        {
            foreach (WeatherCityEntity item in cityList)
            {
                <li onclick='cityBtn("@item.CityName")'>@item.CityName</li>
            }
        }
    </ul>
</div>